package tp.pr4.items;

import tp.pr4.Player;
import tp.pr4.Room;

public class Valuable extends ExpirationItem
{

	private int score;

	public Valuable(String id, String description, int score)
	{
		super(id, description, 1);
		this.score = score;

	}

	public boolean use(Player who, Room where)
	{
		boolean usar=false;
		who.addPoints(this.score);
		
		if (!this.id.equals("")) //antes this.id!=null
		{
			System.out.println("Something changes ...");
			this.decrement();
			usar=true;
		}
		return usar;
	}

}
